import request from "@/utils/request";
// 店铺相关接口
export const shopApi = {
  GETMAP: (params) => request.get("/bg/index/getMap", params),
  FILEUPLOAD: (params) => request.postForm("/bg/file/upload", params),
  // 添加店铺陈列
  SHOPADDSHOPPIC: (params) => request.post("/front/shop/addShopPic", params),
  // 切换店铺
  SHOPGETCHANGESHOP: (params) => request.post("/front/shop/changeShop", params),
  // 检查当前时间是否有填写经营数据
  SHOPCHECKISWRITESHOPDATA: (params) => request.post("/front/shop/checkIsWriteShopData", params),
  // 根据店铺陈列id删除
  SHOPDELETESHOPPICBYID: (params) => request.post("/front/shop/deleteShopPicById", params),
  // 根据员工id删除员工
  SHOPDELETESTAFFBYID: (params) => request.post("/front/shop/deleteStaffById", params),
  // 查询可切换店铺的列表
  SHOPGETCHANGESHOPLIST: (params) => request.post("/front/shop/getChangeShopList", params),
  // 查询当前当铺信息
  SHOPGETCURRENTSHOPINFO: (params) => request.post("/front/shop/getCurrentShopInfo", params),
  // 查询对账单
  SHOPGETFRANCHISEEBALANCERECORD: (params) => request.post("/front/shop/getFranchiseeBalanceRecord", params),
  // 查询余额汇总
  SHOPGETTOTALFRANCHISEEBALANCERECORD: (params) => request.post("/front/shop/getTotalFranchiseeBalanceRecord", params),
  // 分页分询会员充值列表
  SHOPGETINDEXSTUDYDATA: (params) => request.post("/front/shop/getFrontUserRechargeRecordList", params),
  // 查询首页学习表现数据
  SHOPGETFRONTUSERRECHARGERECORDLIST: (params) => request.post("/front/shop/getIndexStudyData", params),
  // 查询首页客流量数据
  SHOPGETINDEXVISIT: (params) => request.post("/front/shop/getIndexVisit", params),
  // 分页分询会员列表
  SHOPGETMEMBERLIST: (params) => request.post("/front/shop/getMemberList", params),
  // 会员详情
  SHOPGETMEMBERBYID: (params) => request.post("/front/shop/getMemberById", params),
  // 查询历史店铺经营数据
  SHOPGETSHOPDATA: (params) => request.post("/front/shop/getShopData", params),
  // 根据日期查询店铺经营数据
  SHOPGETSHOPDATABYTIME: (params) => request.post("/front/shop/getShopDataByTime", params),
  // 分页查询店铺陈列列表
  SHOPGETSHOPPICLIST: (params) => request.post("/front/shop/getShopPicList", params),
  // 查询店铺收款信息
  SHOPGETSHOPRECEIVEPAYMENTINFO: (params) => request.post("/front/shop/getShopReceivePaymentInfo", params),
  // 查询门店员工
  SHOPGETSTAFFLIST: (params) => request.post("/front/shop/getStaffList", params),
  // 编辑或充值会员余额
  SHOPOPAMEMBERBALANCE: (params) => request.post("/front/shop/opaMemberBalance", params),
  // 编辑或添加员工
  SHOPSAVEOPUPDATESTAFF: (params) => request.post("/front/shop/saveOpUpdateStaff", params),
  // 编辑或添加会员
  SHOPSAVEORUPDATEMEMBER: (params) => request.post("/front/shop/saveOrUpdateMember", params),
  // 添加或修改经营数据
  SHOPSAVEORUPDATESHOPDATA: (params) => request.post("/front/shop/saveOrUpdateShopData", params),
  // 设置店铺收款信息
  SHOPSETSHOPRECEIVEPAYMENTINFO: (params) => request.post("/front/shop/setShopReceivePaymentInfo", params),
  // 获取店铺收货列表
  SHOPRECEIVEGETLIST: (params) => request.post("/front/shopReceive/getList", params),
  // 店铺收货批量删除
  SHOPRECEIVEGBATCHDELETE: (params) => request.post("/front/shopReceive/batchDelete", params),
  // 店铺收货查询详情
  SHOPRECEIVEGETDETAILBYID: (params) => request.post("/front/shopReceive/getDetailById", params),
  // 店铺收货保存或修改
  SHOPRECEIVEGSAVEORUPDATE: (params) => request.post("/front/shopReceive/saveOrUpdate", params),
  // 获取店铺默认的收货地址
  SHOPRECEIVEGGETDEFAULTADDRESS: (params) => request.post("/front/shopReceive/getDefaultAddress", params),
  // 取消或收藏商品
  COLLECTADDCOLLECT: (params) => request.post("/front/collect/addOrCancel", params),
  // 收藏商品列表
  COLLECTGETLIST: (params) => request.post("/front/collect/getList", params),
  // 获取分类列表
  CATEGORYGETCATEGORYLIST: (params) => request.post("/front/category/getCategoryList", params),
  // 获取产品系列列表
  CATEGORYGETSERIESLIST: (params) => request.post("/front/category/getSeriesList", params),
  // 查询商品详情
  CATEGORYGETFRONTPRODUCTDETAILBYID: (params) => request.post("/front/product/getFrontProductDetailById", params),
  // 首页商品列表（搜索，线上展厅，分类共用）
  CATEGORYGETFRONTPRODUCTLIST: (params) => request.post("/front/product/getFrontProductList", params),
  // 商品入库 - 根据商品规格编码
  GETFRONTPRODUCTINSTOCKBYSKUCODE: (params) => request.post("/front/product/getFrontProductInStockBySkuCode", params),
  // 获取轮播图列表
  BANNERGETLIST: (params) => request.post("/front/banner/getList", params),
  // 获取爆款推荐商品列表
  RECOMMENDPRODUCTGETLIST: (params) => request.post("/front/recommendProduct/getList", params),
  // 购物车列表
  PURCHASECARTLIST: (params) => request.post("/front/purchaseCart/list", params),
  // 购物车删除
  PURCHASECARTBATCHDELETE: (params) => request.post("/front/purchaseCart/batchDelete", params),
  // 购物车数
  PURCHASECARTCOUNT: (params) => request.get("/front/purchaseCart/count", params),
  // 购物车保存更新
  PURCHASECARTSAVEORUPDATE: (params) => request.post("/front/purchaseCart/saveOrUpdate", params),
  // 购物车批量保存更新
  PURCHASECARTSAVEORUPDATEBATCH: (params) => request.post("/front/purchaseCart/saveOrUpdateBatch", params),
  // 库存获取入库记录列表
  SHOPSTOCKGETRECORDLIST: (params) => request.post("/front/shopStock/getRecordList", params),
  // 库存获取入库记录入库
  SHOPSTOCKINSTOCK: (params) => request.post("/front/shopStock/inStock", params),
  // 订单-再下一单
  ORDERAGAINORDER: (params) => request.post("/front/order/againOrder", params),
  // 申请调换货详情
  ORDERAPPLYADJUST: (params) => request.post("/front/order/applyAdjust", params),
  // 申请调换货记录 - 传订单id
  APPLYADJUSTRECORDLIST: (params) => request.post("/front/order/applyAdjustRecordList", params),
  // 取消订单
  ORDERCANCELORDER: (params) => request.post("/front/order/cancelOrder", params),
  // 确认申请调换货
  ORDERCONFIRMAPPLYADJUST: (params) => request.post("/front/order/confirmApplyAdjust", params),
  // 创建订单
  ORDERCREATEORDER: (params) => request.post("/front/order/createOrder", params),
  // 订单详情
  ORDERGETORDERDETAIL: (params) => request.post("/front/order/getOrderDetail", params),
  // 订单列表
  ORDERGETORDERLIST: (params) => request.post("/front/order/getOrderList", params),
  // 确认收货
  ORDERRECEIVEORDER: (params) => request.post("/front/order/receiveOrder", params),
  // 申请专营商账号
  FRANCHISEEREGISTERFRANCHISEE: (params) => request.post("/front/franchisee/registerFranchisee", params),
  // 查询专营商注册申请信息
  FRANCHISEEGETREGISTERFRANCHISEEINFOBYID: (params) => request.post("/front/franchisee/getRegisterFranchiseeInfoById", params),
  //获取店铺名称
  FRANCHISEEGETSHOPNAME: (params) => request.post("/front/franchisee/getShopName", params),
  // 完善店铺信息
  FRANCHISEEUPDATESHOPINFO: (params) => request.post("/front/franchisee/updateShopInfo", params),
  /**库存相关 */
  // 获取库存统计列表 
  SHOPSTOCKGETSTOCKLIST: (params) => request.post("/front/shopStock/getStockList", params),
  // 编辑入库记录 
  SHOPSTOCKEDITRECORD: (params) => request.post("/front/shopStock/editRecord", params),
  // 删除入库记录
  SHOPSTOCKDELRECORD: (params) => request.post("/front/shopStock/deleteRecord", params),
  // 编辑往年库存
  SHOPSTOCKEDITSHOPLASTYEARSTOCK: (params) => request.post("/front/shopStock/editShopLastYearStock", params),
  // 查询商品详情 /front/product/getFrontProductDetailBySkuCode
  PRODUCTGETFRONTPRODUCTDETAILBYSKUCODE: (params) => request.post("/front/product/getFrontProductDetailBySkuCode", params),
  //销售记录列表
  SCANPAYGETSALESRECORDLIST: (params) => request.post("/front/scanPay/getSalesList", params),
  //销售记录详情
  SCANPAYGETSALESDETAIL: (params) => request.post("/front/scanPay/getSalesDetail", params),
  // 删除销售记录
  SCANPAYDELETESALES: (params) => request.post("/front/scanPay/deleteSales", params),
  // 店铺数据统计
  SHOPSHOPDATASTATISTICS: (params) => request.post("/front/shop/shopDataStatistics", params),
  //获取首页线上展厅
  EXHIBITIONHALLGETINDEXEXHIBITIONHALL: (params) => request.get("/front/exhibitionHall/getIndexExhibitionHall", params),
  // 查询首页销售额
  SCANPAYGETINDEXSALES: (params) => request.post("/front/scanPay/getIndexSales", params),
  //查询首页员工销售额
  SCANPAYGETINDEXSHOPSTAFFSALES: (params) => request.post("/front/scanPay/getIndexShopStaffSales", params),
  //查询销售表现数据
  SHOPGETINDEXSALESDATA: (params) => request.post("/front/shop/getIndexSalesData", params),
  // 线上展厅-获取全景图,区域图
  EXHIBITIONHALLGETPANORAMAEXHIBITIONHALLLIST: (params) => request.get("/front/exhibitionHall/getPanoramaExhibitionHallList", params),
  // 扫码收银 - 根据商品规格编码
  SCANPAYGETFRONTPRODUCTBYSKUCODE: (params) => request.post("/front/scanPay/getFrontProductBySkuCode", params),
  //扫码收银 - 确认支付,收银成功后返回获得积分
  SCANPAYCREATEORDER: (params) => request.post("/front/scanPay/createOrder", params),
  

};
